-- GENERATED SPELL FOR [Savage Proto-Drake] --


function spell0_31265(pUnit, Event) --@Flame Breath,n/a--
pUnit:FullCastSpellOnTarget(51219,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31265', 2000, 1)
end

function spell1_31265(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(41572,pUnit)
pUnit:RegisterEvent('Sorts_31265', 1000, 1)
end

function Sorts_31265(pUnit, Event)
local choix_sorts_31265 = math.random(0, 1)
if choix_sorts_31265 == 0 then
pUnit:RegisterEvent('spell0_31265', 1, 1)
end
if choix_sorts_31265 == 1 then
pUnit:RegisterEvent('spell1_31265', 1, 1)
end
end

function mob31265_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31265', math.random(1500, 3000), 1)
end

function mob31265_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31265_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31265_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31265, 1, 'mob31265_Action')
RegisterUnitEvent(31265, 2, 'mob31265_Leave')
RegisterUnitEvent(31265, 3, 'mob31265_Kill')
RegisterUnitEvent(31265, 4, 'mob31265_Die')
